package io.jft.doll.model.bindModel

import android.widget.ImageView
import com.g.base.ui.recyclerView.item.ClickAbleItem
import io.jft.doll.databinding.ViewImageBinding

/**
 * Created by G on 2017/8/16 0016.
 */

//viewImageBinding 是为了加入ImageViewPager的时候能动态绑定数据
class ImageBind(var imageSrc: Any, private var viewImageBinding: ViewImageBinding? = null) : ClickAbleItem() {
    var imageCircle: Boolean? = null
    var imageRadius: Int? = null
    var scaleType: ImageView.ScaleType = ImageView.ScaleType.CENTER_CROP
    fun bind() {
        viewImageBinding?.data = this
    }

    fun getImageView() = viewImageBinding?.imageView
}